Arguments for SNMP v3 for a servcie

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Arguments for SNMP v3 for a servcie

Post by deepavaidya »

Hi,

I have created services like CPU usage, Disk Usage, Memory Usage for a remote server which supports SNMP V3. How should I give the arguments for a service.

Check command : check_xi_service_snmp_linux_storage

$Arg1$ :

For snmp v2 it would be like

-C public --v2c -m "^/$" -w 80 -c 95 -f

For snmp v3 I gave the below args (my Username and pwd is xxx ) but when I click Test check command I am getting the error "Put snmp V3 login info with protocols!"

-C public -P 3 -U xxx -A xxx -L authpriv -a md5 -w 80 -c 95 -m "^/$"
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Rename SNMP Traps

Post by deepavaidya »

Hi,

Is it possible to edit the service name 'SNMP Traps' and rename it as 'TimesTen Traps' to receive the traps from Timesten database server.

If I rename the service description from configure->CCM->Services. The service name is changed but it is in pending state and in the log files we can see the below error.


Passive check result was received for service 'SNMP Traps' on host 'XXXX', but the service could not be found!

Same error is got when tried the below cmd

/usr/local/bin/snmpttconvertmib --in=TRIPPLITE-MIB.txt --out=TRIPPLITE-MIB.conf --exec='/usr/local/bin/snmptraphandling.py "$r" "TimesTen Traps" "$s" "$@" "$-*"'


The SNMP Traps service is found in Unconfigured Object and need to configure it again to get the trap. Is there any configuration file which should be edited in order to get the traps in renamed service 'TimesTen Traps'
Last edited by deepavaidya on Tue Oct 15, 2013 6:01 am, edited 1 time in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Arguments for SNMP v3 for a servcie

Post by abrist »

Please do not bump posts as they just move the post to the bottom of our support queue (as then it becomes the newest post, instead of an older post which will take precedence).

Are you using aes or des ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Arguments for SNMP v3 for a servcie

Post by deepavaidya »

des
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Arguments for SNMP v3 for a servcie

Post by abrist »

The syntax for v3 is a bit different:

Code: Select all

-l "<username>" -x "<auth password>" -X "<priv password>" -L md5,des  -w 80 -c 95 -m "<mib>"
Using a community string will not work as that is a v1/v2 argument, so that should be removed as well.
Are you using auth and priv?

EDIT: For others using aes, it does look like aes requires an additional perl module: Crypt/Rijndael.pm
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: Arguments for SNMP v3 for a servcie

Post by deepavaidya »

Ya we are using authpriv. What is the priv password ?

-l "<username>" -x "<auth password>" -X "<priv password>" -L md5,des -w 80 -c 95 -m "<mib>"
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Arguments for SNMP v3 for a servcie

Post by abrist »

The priv password is tied to des/aes encryption. If you are using des, you most likely need a priv password. On many devices, it is the same as the auth password.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked